package com.tengju.settlement.domain.model.depository;

import com.tengju.settlement.domain.shared.Amount;
import lombok.AllArgsConstructor;
import lombok.Value;
import lombok.experimental.NonFinal;

/**
 * @author: 大木
 * @date: 2021/12/7 11:23 上午
 */
@Value
@AllArgsConstructor
public class DepositoryVerifyFrom {

    BankCardType cardType;

    /**
     * 短信验证码或口令
     */
    String msgValid;

    /**
     * 金额 (小额鉴权)
     */
    @NonFinal
    Amount amount;

    /**
     * 证件
     */
    License license;

    /**
     * 银行卡号
     */
    String cardNo;


    /**
     * 手机号 (银联鉴权)
     */
    String mobile;

    public DepositoryVerifyFrom(BankCardType cardType, String msgValid, License license, String cardNo, String mobile) {
        this.cardType = cardType;
        this.msgValid = msgValid;
        this.license = license;
        this.cardNo = cardNo;
        this.mobile = mobile;
    }

}
